from rest_framework import serializers
from home.models import NavModel,BannerModel
class NavSweializer(serializers.ModelSerializer):
    class Meta:
        model = NavModel
        fields = ['name','link','is_http']

class BannerSerializer(serializers.ModelSerializer):
    class Meta:
        model = BannerModel
        fields = ['image','name','link','is_http']


